package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author gxy
 * @since 2022-07-14
 */
@Getter
@Setter
@TableName("ncg_app_user_diet_record_remark")
@ApiModel(value = "患者饮食记录评论", description = "患者饮食记录评论")
public class AppUserDietRecordRemark implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("患者id")
    private Long uid;

    @ApiModelProperty("用户姓名")
    private String uname;

    @ApiModelProperty("饮食记录id")
    private Long recordid;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")                    // 表示返回时间类型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")      // 表示接收时间类型
    private LocalDateTime createtime;

}
